section.section
  header.section__header
    h3#method-isNativeFunction.section__h3 isNativeFunction(val)
  div.section__content
    dl.section__dl
      dt.section__dt Since：
      dd.section__dd 0.2.0
    h4.section__h4 Description
    p isNativeFunction(val) 方法用来检测测试数据是否为 JavaScript 内置函数。
    h4.section__h4 Parameters
    h5.section__h4 val
    dl.section__dl
      dt.section__dt Type：
      dd.section__dd Any
    p （必须）要检测的数据。
    h4.section__h4 Returns
    dl.section__dl
      dt.section__dt Type：
      dd.section__dd Boolean。
    p val 是系统内置函数，返回 true，否则返回 false。
    pre.section__pre
      code.section__code.
        import Types from '@yaohaixiao/types.js'
        // 或者单独引用 isNativeFunction() 方法
        // import isNativeFunction from '@yaohaixiao/types.js/isNativeFunction'

        const fn = function(){};
        const ff = class {};
        const f = () => console.log('no constructable')

        Types.isNativeFunction(fn) // -> false
        Types.isNativeFunction(ff) // -> false
        Types.isNativeFunction(f) // -> false
        Types.isNativeFunction(document.domain) // -> false

        Types.isNativeFunction(Boolean) // -> true
        Types.isNativeFunction(String) // -> true
        Types.isNativeFunction(Number) // -> true
        Types.isNativeFunction(Object) // -> true
        Types.isNativeFunction(Data) // -> true
        Types.isNativeFunction(RegExp) // -> true
        Types.isNativeFunction(Error) // -> true
        Types.isNativeFunction(Math.floor) // -> true
        Types.isNativeFunction(console.log) // -> true
        Types.isNativeFunction(alert) // -> true
